package han.service;

import han.dao.LawsMapper;
import han.pojo.Laws;
import han.pojo.LawsMap;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @authou HanDianWei
 * @create 2020-10-27 14:59
 */
@Service
public class LawsServiceImpl implements LawsService {
    private LawsMapper lawsMapper;
    public void setLawsMapper(LawsMapper lawsMapper){
        this.lawsMapper = lawsMapper;
    }
    public Laws queryLawsById(int id) {
        return lawsMapper.queryLawsById(id);
    }

    public List<LawsMap> queryAllLaws() {
        return lawsMapper.queryAllLaws();
    }

    public int addLaws(Laws laws) {
        return lawsMapper.addLaws(laws);
    }
    public int updLaws(Laws laws){
        return lawsMapper.updLaws(laws);
    }

    public int delLawsById(int id) {
        return lawsMapper.delLawsById(id);
    }
}
